package com.milhouz.pokertimer.model;

public class Blind {

	private int round;
	private int time;

	private Double smallBlind;
	private Double bigBlind;
	private Double antes;

	private boolean hasBreak = false;

	public Blind(int round, int time, double smallBlind) {
		this.round = round;
		this.time = time;
		this.smallBlind = smallBlind;
		this.bigBlind = 2 * smallBlind;
		this.antes = 0D;
		this.hasBreak = false;
	}
	
	public Blind(int round, int time, double smallBlind, double antes, boolean hasBreak) {
		this.round = round;
		this.time = time;
		this.smallBlind = smallBlind;
		this.bigBlind = 2 * smallBlind;
		this.antes = antes;
		this.hasBreak = hasBreak;
	}

	public int getRound() {
		return round;
	}

	public void setRound(int round) {
		this.round = round;
	}

	public int getTime() {
		return time;
	}

	public void setTime(int time) {
		this.time = time;
	}

	public Double getSmallBlind() {
		return smallBlind;
	}

	public void setSmallBlind(Double smallBlind) {
		this.smallBlind = smallBlind;
		this.bigBlind = 2 * smallBlind;
	}

	public Double getBigBlind() {
		return bigBlind;
	}

	public void setBigBlind(Double bigBlind) {
		this.bigBlind = bigBlind;
	}

	public Double getAntes() {
		return antes;
	}

	public void setAntes(Double antes) {
		this.antes = antes;
	}

	public boolean isHasBreak() {
		return hasBreak;
	}

	public void setHasBreak(boolean hasBreak) {
		this.hasBreak = hasBreak;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(this.round).append(". ")
		  .append(this.time).append("min - ")
		  .append(this.smallBlind).append(" / ")
		  .append(this.bigBlind).append("\n");
		return sb.toString();
	}

}
